package com.wwj.gulimall.product;

import com.wwj.gulimall.product.entity.BrandEntity;
import com.wwj.gulimall.product.service.BrandService;
import com.wwj.gulimall.product.service.impl.BrandServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
//import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

//开启feign客户度的远程调用功能
//扫描feign文件夹下的带有@FeignClient注解的接口
//@EnableFeignClients(basePackages = "com.wwj.gulimall.product.feign")
//@EnableDiscoveryClient
@EnableFeignClients(basePackages="com.wwj.gulimall.product.feign")//扫描远程调用接口方法注解
@SpringBootApplication
@EnableDiscoveryClient //注解开启服务注册与发现功能
@Slf4j
public class GulimallProductApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc =
                SpringApplication.run(GulimallProductApplication.class, args);

    }

}
